package com.eedi.framework.logger.enmus;

import com.eedi.framework.common.enums.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

/**
 * 登录结果的枚举类
 */
@Getter
@AllArgsConstructor
@ToString
public enum SysLoginResultEnum implements BaseEnum<Integer,String> {

    SUCCESS(0,"成功"),
    //
    BAD_CREDENTIALS(10,"账号或密码不正确"),
    // 账号或密码不正确
    NO_RIGHT(11,"无对应客户端访问权限"),
    // 账号或密码不正确
    USER_DISABLED(20,"用户被禁用"),
    // 用户被禁用
    CAPTCHA_NOT_FOUND(30,"图片验证码不存在"),
    // 图片验证码不存在
    CAPTCHA_CODE_ERROR(31,"图片验证码不正确"),
    // 图片验证码不正确


    ;

    /**
     * 结果
     */
    private final Integer code;

    private final String desc;

    @Override
    public String title() {
        return "登录结果";
    }
}
